<template>
  <Wrapper>
    <el-alert title="el-icon只展示了项目中用到的图标，更多图标全部引入就行" type="success" />
    <icon-select v-model="icon" @select="select" />
  </Wrapper>
</template>

<script setup>
import { ElMessage } from 'element-plus'

const IconSelect = defineAsyncComponent(() => import('@/components/icon-select'))

const icon = ref('')

function select(item) {
  ElMessage.success(`选中图标：${item.name}，类型是：${item.iconType}`)
}
</script>
